package com.byxy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.byxy.vo.TipVO;

public interface MainDao {
	
	@Results({
		@Result(column="tip_id",property="tip_id",id=true),
		@Result(column="user_id",property="user_id"),
		@Result(column="tab_id",property="tab_id"),
		@Result(column="tip_title",property="tip_title"),
		@Result(column="tip_content",property="tip_content"),
		@Result(column="tip_publishTime",property="tip_publishTime"),
		@Result(column="tip_modifyTime",property="tip_modifyTime"),
		@Result(column="tip_click",property="tip_click"),
		@Result(column="tip_isDeleted",property="tip_isDeleted"),
		@Result(column="tip_isKnot",property="tip_isKnot"),
		@Result(column="tip_replies",property="tip_replies")
		})
	@Select("select * from tip")
	List<TipVO> find();
	
}
